#ifndef LEAVEWIDGET_H
#define LEAVEWIDGET_H

#include <QWidget>
#include <QSqlTableModel>

namespace Ui {
class LeaveWidget;
}

class LeaveWidget : public QWidget
{
    Q_OBJECT

public:
    explicit LeaveWidget(QWidget *parent = 0);
    ~LeaveWidget();

private slots:
    void flushTable();
    void on_btn_leave_clicked();

    void on_btn_leave_back_clicked();

private:
    Ui::LeaveWidget *ui;
    QSqlTableModel *model;
    void initWidget(); //初始化窗体
    void initTable(); //初始化Table
};

#endif // LEAVEWIDGET_H
